#include <EXTERN.h>
#include <perl.h>

int main(int argc, char** argv, char** env) {
   PerlInterpreter *my_perl;
   /* 'void' command line */
   char *switches[] = {"", "-e", "0"};
   my_perl = perl_alloc();
   perl_construct(my_perl);
   perl_parse(my_perl, NULL, 3, switches, (char**)NULL);
   perl_run(my_perl);
 

   /* my_perl is now ready to receive orders */

   perl_destruct(my_perl);
   perl_free(my_perl);
}
